package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.yjggzy.model.YjBiddingList;
import io.github.biezhi.elves.yjggzy.model.YjDownloadBiddingHtml;
import io.github.biezhi.elves.yjggzy.model.YjRecordBiddingNotice;
import io.github.biezhi.elves.mapper.YjggzyMapper;
import io.github.biezhi.elves.service.YjggzyService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service("yjggzyService")
public class YjggzyServiceImpl implements YjggzyService {

	@Autowired
	private YjggzyMapper yjggzyMapper;
	
	@Override
	public void saveYjRecordBiddingNotice(YjRecordBiddingNotice yjRecordBiddingNotice) {
		yjggzyMapper.saveYjRecordBiddingNotice(yjRecordBiddingNotice);
	}

	@Override
	public Integer countByUrl(String noticeDetailUrl) {
		return yjggzyMapper.countByUrl(noticeDetailUrl);
	}

	@Override
	public List<YjRecordBiddingNotice> findRecordByNoticeTypeAndDate(String noticeType, String date) {
		return yjggzyMapper.findRecordByNoticeTypeAndDate(noticeType,date);
	}

	@Override
	public void saveYjDownloadBiddingHtml(YjDownloadBiddingHtml yjDownloadBiddingHtml) {
		yjggzyMapper.saveYjDownloadBiddingHtml(yjDownloadBiddingHtml);
	}

	@Override
	public Integer countByDownloadUrl(String noticeDetailUrl) {
		return yjggzyMapper.countByDownloadUrl(noticeDetailUrl);
	}

	@Override
	public List<YjDownloadBiddingHtml> listDownloadHtml() {
		return yjggzyMapper.listDownloadHtml();
	}

	@Override
	public void saveYjBiddingList(YjBiddingList yjbiddingList) {
		yjggzyMapper.saveYjbiddingList(yjbiddingList);
	}

	@Override
	public List<YjDownloadBiddingHtml> listDownloadHtmlByTabType(String tabType) {
		return yjggzyMapper.listDownloadHtmlByTabType(tabType);
	}

}
